<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .grid-container {
      /* 网格布局 */
      display: inline-grid;
      grid-template-columns: repeat(3, 200px);
      grid-template-rows: repeat(2, 100px);
      margin: 100px;
    }
    .grid-item {
      padding: 10px;
      font-size: 18px;
      color: red;
    }
    .item1 {
      background-color: pink;
      grid-column-start: auto;
      grid-column-end: 4;
      grid-row-start: 1;
      grid-row-end: auto;
    }
  </style>
<body>
    <!-- 
        TIP

        表示属性对网格项目的放置没有任何作用，表示自动放置，自动跨度或默认跨度为 1。
        当属性没有设置值时，其默认值就是 auto
    -->

    <div class="grid-container">
        <div class="grid-item item1">1</div>
        <div class="grid-item">2</div>
        <div class="grid-item">3</div>
        <div class="grid-item">4</div>
        <div class="grid-item">5</div>
        <div class="grid-item">6</div>
      </div>
</body>
</html>